package simplecoder.domain;

import org.apache.commons.lang.StringUtils;

public class Service extends Clazz {

	@Override
	public String getSuffix() {
		return "Service";
	}

	@Override
	public void init() {
		params.put("daoPackName", module.getDao().getPackName());
		params.put("daoName", module.getDao().getName());
		params.put("daoClassName", module.getDao().getClassName());
		params.put("daoInstanceName", StringUtils.uncapitalize(module.getDao().getName()));
	}

	@Override
	public String getPackName(String pojoPackName) {
		return pojoPackName+".service";
	}

}
